package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"video/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/add", &controllers.VideoController{}, "post:Add")
	beego.Router("/list", &controllers.VideoController{}, "get:List")
	beego.Router("/show", &controllers.VideoController{}, "get:Show")
	beego.Router("/delete", &controllers.VideoController{}, "get:Delete")
	beego.Router("/upload", &controllers.VideoController{}, "post:Upload")
	beego.Router("/update", &controllers.VideoController{}, "post:Update")
	beego.Router("/login", &controllers.UserController{}, "post:Login")
	beego.Router("/rank", &controllers.VideoController{}, "get:VideoRank")

}
